package it.gius.pe.shapes.witness;

public class EllipsePointWitness implements SinglePointWitness{
	
	public EllipsePointWitness(float a) {
		eX = a;
		eY = 0;
	}
	
	public float eX,eY;

	
	
	@Override
	public Witness clone()  {
		EllipsePointWitness clone = new EllipsePointWitness(this.eX);
		clone.eY = this.eY;
		
		return clone;
	}



	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + Float.floatToIntBits(eX);
		result = prime * result + Float.floatToIntBits(eY);
		return result;
	}



	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EllipsePointWitness other = (EllipsePointWitness) obj;
		if (Float.floatToIntBits(eX) != Float.floatToIntBits(other.eX))
			return false;
		if (Float.floatToIntBits(eY) != Float.floatToIntBits(other.eY))
			return false;
		return true;
	}
	
	
}
